/*************************************************************************
Header Name: List.h
Des: This header file initializes all the objects needed to evaluate the
	program gradeana.cpp
Author: Alberto De Pena
Due Date: 10/14/09 @ 11:55pm
*************************************************************************/
typedef double ListType;

struct Node
{
	ListType data;
	Node* Next;
};

class List
{
public:
	//constructor
	List();
	//destructor
	~List();
	//keeps total of grades entered
	int ListCount();
	//calculates the mean of the grades
	ListType ListMean();
	//returns the higher grade
	ListType ListHigh();
	//returns the lowest grade
	ListType ListLow();
	//returns the sum of all the grades
	ListType ListSum();
	//returns true or false 
	bool ListAdd(ListType);
	//returns the amount of a particular grade(s)
	int ListRange(ListType, ListType);
	
private:
	//points to first node
	Node* Head;
	//keeps a count of the grades entered by the user
	int Count;
};
